.class public Lcom/estrongs/android/ui/preference/fragments/HeaderPreferenceFragment;
.super Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;
.source "HeaderPreferenceFragment.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;-><init>()V

    return-void
.end method

.method private d()V
    .locals 2

    const-string v0, "preference_tools_settings"

    .line 1
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    check-cast v0, Landroidx/preference/PreferenceCategory;

    if-eqz v0, :cond_2

    .line 2
    sget-boolean v1, Lcom/estrongs/android/pop/j;->P:Z

    if-eqz v1, :cond_0

    const-string v1, "gesture_settings"

    .line 3
    invoke-virtual {p0, v0, v1}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->a(Landroidx/preference/PreferenceGroup;Ljava/lang/String;)V

    .line 4
    :cond_0
    sget-boolean v1, Lcom/estrongs/android/pop/j;->R:Z

    if-eqz v1, :cond_1

    const-string v1, "downloader_settings"

    .line 5
    invoke-virtual {p0, v0, v1}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->a(Landroidx/preference/PreferenceGroup;Ljava/lang/String;)V

    .line 6
    :cond_1
    sget-boolean v1, Lcom/estrongs/android/pop/j;->j:Z

    if-nez v1, :cond_2

    const-string v1, "appmanager_preference"

    .line 7
    invoke-virtual {p0, v0, v1}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->a(Landroidx/preference/PreferenceGroup;Ljava/lang/String;)V

    .line 8
    :cond_2
    sget-boolean v0, Lcom/estrongs/android/pop/j;->m:Z

    if-eqz v0, :cond_3

    const-string v0, "preference_upgrade_settings_text_category"

    const-string v1, "preference_rate"

    .line 9
    invoke-virtual {p0, v0, v1}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 10
    :cond_3
    invoke-static {}, Les/eo;->k()Les/eo;

    move-result-object v0

    invoke-virtual {v0}, Les/eo;->c()Z

    move-result v0

    if-nez v0, :cond_4

    const-string v0, "file_preference"

    const-string v1, "preference_new_file_settings_category"

    .line 11
    invoke-virtual {p0, v0, v1}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_4
    return-void
.end method


# virtual methods
.method public synthetic a(Landroidx/preference/Preference;)Z
    .locals 1

    .line 1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    const-string v0, "setting"

    invoke-static {p1, v0}, Lcom/estrongs/android/ui/homepage/HomeManagerActivity;->a(Landroid/app/Activity;Ljava/lang/String;)V

    const/4 p1, 0x1

    return p1
.end method

.method public synthetic a(Ljava/lang/String;Landroidx/preference/Preference;)Z
    .locals 2

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p2

    new-instance v0, Lcom/estrongs/android/ui/preference/fragments/g1;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/preference/fragments/g1;-><init>(Lcom/estrongs/android/ui/preference/fragments/HeaderPreferenceFragment;)V

    const-string v1, "setting"

    invoke-static {p2, v0, v1}, Lcom/estrongs/android/ui/dialog/c1;->a(Landroid/content/Context;Lcom/estrongs/android/ui/dialog/c1$a;Ljava/lang/String;)V

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p2

    invoke-virtual {p2, p1}, Lcom/estrongs/android/pop/l;->f0(Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method

.method public synthetic b()V
    .locals 1

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->H0()V

    return-void
.end method

.method public synthetic b(Landroidx/preference/Preference;)Z
    .locals 1

    .line 1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    const-string v0, "setting"

    invoke-static {p1, v0}, Lcom/estrongs/android/pop/app/leftnavigation/LeftNaviManagerActivity;->a(Landroid/content/Context;Ljava/lang/String;)V

    const/4 p1, 0x1

    return p1
.end method

.method public synthetic c(Landroidx/preference/Preference;)Z
    .locals 2

    .line 1
    new-instance p1, Landroid/content/Intent;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const-class v1, Lcom/estrongs/android/pop/app/GestureManageActivity;

    invoke-direct {p1, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, p1}, Landroidx/fragment/app/Fragment;->startActivity(Landroid/content/Intent;)V

    const/4 p1, 0x1

    return p1
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 10

    .line 1
    invoke-super {p0, p1}, Landroidx/preference/PreferenceFragmentCompat;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f14000f

    .line 2
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->addPreferencesFromResource(I)V

    .line 3
    sget-boolean p1, Lcom/estrongs/android/pop/view/e;->a:Z

    if-eqz p1, :cond_0

    const-string p1, "preference_upgrade_settings_text_category"

    .line 4
    invoke-virtual {p0, p1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object p1

    check-cast p1, Landroidx/preference/PreferenceCategory;

    const-string v0, "preference_rate"

    .line 5
    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->a(Landroidx/preference/PreferenceGroup;Ljava/lang/String;)V

    const-string v0, "update_preference"

    .line 6
    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->a(Landroidx/preference/PreferenceGroup;Ljava/lang/String;)V

    goto :goto_0

    .line 7
    :cond_0
    invoke-direct {p0}, Lcom/estrongs/android/ui/preference/fragments/HeaderPreferenceFragment;->d()V

    :goto_0
    const-string p1, "preference_display_settings_category"

    .line 8
    invoke-virtual {p0, p1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object p1

    .line 9
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/preference/fragments/HeaderPreferenceFragment;->onPreferenceTreeClick(Landroidx/preference/Preference;)Z

    const-string p1, "setting_layout"

    .line 10
    invoke-virtual {p0, p1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object p1

    check-cast p1, Landroidx/preference/PreferenceCategory;

    if-eqz p1, :cond_7

    const-string v0, "preference_home_manage"

    .line 11
    invoke-virtual {p1, v0}, Landroidx/preference/PreferenceGroup;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    const-string v1, "preference_left_navi_manage"

    .line 12
    invoke-virtual {p1, v1}, Landroidx/preference/PreferenceGroup;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v1

    .line 13
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object v2

    invoke-virtual {v2}, Les/b00;->i()Z

    move-result v2

    const/16 v3, 0x21

    const-string v4, "  "

    const/4 v5, 0x0

    if-nez v2, :cond_2

    .line 14
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v6, 0x7f080584

    invoke-virtual {v2, v6}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    .line 15
    invoke-virtual {v2}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v6

    invoke-virtual {v2}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v7

    invoke-virtual {v2, v5, v5, v6, v7}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 16
    new-instance v6, Landroid/text/SpannableString;

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const v8, 0x7f1104f2

    invoke-virtual {p0, v8}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 17
    new-instance v7, Lcom/estrongs/android/pop/app/premium/newui/n;

    invoke-direct {v7, v2}, Lcom/estrongs/android/pop/app/premium/newui/n;-><init>(Landroid/graphics/drawable/Drawable;)V

    .line 18
    invoke-virtual {v6}, Landroid/text/SpannableString;->length()I

    move-result v8

    add-int/lit8 v8, v8, -0x1

    .line 19
    invoke-virtual {v6}, Landroid/text/SpannableString;->length()I

    move-result v9

    .line 20
    invoke-virtual {v6, v7, v8, v9, v3}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    if-eqz v0, :cond_1

    .line 21
    invoke-virtual {v0, v6}, Landroidx/preference/Preference;->setTitle(Ljava/lang/CharSequence;)V

    .line 22
    :cond_1
    new-instance v6, Landroid/text/SpannableString;

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const v8, 0x7f110aa0

    invoke-virtual {p0, v8}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 23
    new-instance v7, Lcom/estrongs/android/pop/app/premium/newui/n;

    invoke-direct {v7, v2}, Lcom/estrongs/android/pop/app/premium/newui/n;-><init>(Landroid/graphics/drawable/Drawable;)V

    .line 24
    invoke-virtual {v6}, Landroid/text/SpannableString;->length()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    .line 25
    invoke-virtual {v6}, Landroid/text/SpannableString;->length()I

    move-result v8

    .line 26
    invoke-virtual {v6, v7, v2, v8, v3}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    if-eqz v1, :cond_2

    .line 27
    invoke-virtual {v1, v6}, Landroidx/preference/Preference;->setTitle(Ljava/lang/CharSequence;)V

    :cond_2
    if-eqz v0, :cond_3

    .line 28
    new-instance v2, Lcom/estrongs/android/ui/preference/fragments/h1;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/preference/fragments/h1;-><init>(Lcom/estrongs/android/ui/preference/fragments/HeaderPreferenceFragment;)V

    invoke-virtual {v0, v2}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    :cond_3
    if-eqz v1, :cond_4

    .line 29
    new-instance v0, Lcom/estrongs/android/ui/preference/fragments/d1;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/preference/fragments/d1;-><init>(Lcom/estrongs/android/ui/preference/fragments/HeaderPreferenceFragment;)V

    invoke-virtual {v1, v0}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    :cond_4
    const-string v0, "preference_toolbar_manage"

    .line 30
    invoke-virtual {p1, v0}, Landroidx/preference/PreferenceGroup;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v1

    if-eqz v1, :cond_7

    .line 31
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/android/pop/utils/t;->h(Landroid/content/Context;)Z

    move-result v2

    if-eqz v2, :cond_5

    .line 32
    invoke-virtual {p1, v1}, Landroidx/preference/PreferenceGroup;->removePreference(Landroidx/preference/Preference;)Z

    goto :goto_1

    .line 33
    :cond_5
    new-instance p1, Lcom/estrongs/android/ui/preference/fragments/f1;

    invoke-direct {p1, p0, v0}, Lcom/estrongs/android/ui/preference/fragments/f1;-><init>(Lcom/estrongs/android/ui/preference/fragments/HeaderPreferenceFragment;Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    .line 34
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/l;->j0(Ljava/lang/String;)Z

    move-result p1

    const v0, 0x7f110abd

    if-eqz p1, :cond_6

    .line 35
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v2, 0x7f0803be

    invoke-virtual {p1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    .line 36
    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v2

    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v6

    invoke-virtual {p1, v5, v5, v2, v6}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 37
    new-instance v2, Landroid/text/SpannableString;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0, v0}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v2, v0}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 38
    new-instance v0, Lcom/estrongs/android/pop/app/premium/newui/n;

    invoke-direct {v0, p1}, Lcom/estrongs/android/pop/app/premium/newui/n;-><init>(Landroid/graphics/drawable/Drawable;)V

    .line 39
    invoke-virtual {v2}, Landroid/text/SpannableString;->length()I

    move-result p1

    add-int/lit8 p1, p1, -0x1

    .line 40
    invoke-virtual {v2}, Landroid/text/SpannableString;->length()I

    move-result v4

    .line 41
    invoke-virtual {v2, v0, p1, v4, v3}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 42
    invoke-virtual {v1, v2}, Landroidx/preference/Preference;->setTitle(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 43
    :cond_6
    invoke-virtual {p0, v0}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Landroidx/preference/Preference;->setTitle(Ljava/lang/CharSequence;)V

    :cond_7
    :goto_1
    const-string p1, "gesture_settings"

    .line 44
    invoke-virtual {p0, p1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object p1

    if-eqz p1, :cond_8

    .line 45
    new-instance v0, Lcom/estrongs/android/ui/preference/fragments/e1;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/preference/fragments/e1;-><init>(Lcom/estrongs/android/ui/preference/fragments/HeaderPreferenceFragment;)V

    invoke-virtual {p1, v0}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    :cond_8
    return-void
.end method

.method public onPreferenceTreeClick(Landroidx/preference/Preference;)Z
    .locals 3

    .line 1
    invoke-super {p0, p1}, Landroidx/preference/PreferenceFragmentCompat;->onPreferenceTreeClick(Landroidx/preference/Preference;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 2
    invoke-virtual {p1}, Landroidx/preference/Preference;->getKey()Ljava/lang/String;

    move-result-object p1

    const-string v1, "preference_rate"

    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const-string p1, "com.estrongs.android.pop"

    .line 3
    :try_start_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    const-string v2, "pname"

    invoke-static {v1, p1, v2}, Lcom/estrongs/android/pop/utils/k;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 4
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return v0
.end method
